Part Number Hot Search : 
ADXRS646 UNR4213 SDA09H0B MSZ5248 LN516RK S3C9644 SO2222A 2SD21
Product Description
Full Text Search
 

To Download ML60852 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  pedl60852-01 1 semiconductor this version: jan. 2000 ML60852 preliminary usb device controller 1/81 general description the ML60852 is a general purpose universal serial bus (usb) device controller. the ML60852 provde a usb serial interface engine, usb transceiver, fifos, control/status registers, application interface circuit, and oscillation circuit thereby easily realizing a usb system. the ML60852 supports four types of data transfer such as control transfer, bulk transfer, interrupt transfer and isochronous transfer, and also supports five or six endpoints. features ? usb1.1 compliant ? supports full-speed (12 mbps). ? supports four types of transfer; control transfer, bulk transfer, interrupt transfer, and isochronous transfer. ? endpoints: 5 to 6 endpoints control ep 1 bulk/interrupt ep 3 isochronous/bulk/interrupt ep 1 or 2 ? built-in fifo for data storage ? a two-layer configuration of fifo for each of ep1, ep2, ep4, and ep5 ? dma transfer is possible (ep1, ep2, ep4, and ep5). ? supports bus-powered device. the suspend condition is automatically detected and the low-power mode is activated. normal operation is automatically restarted when the resume condition is detected. ? built-in usb transceiver circuit ? v cc =3.0 to 3.6 v ? interface with 5 v circuit is possible. (input: 5 v tolerant, output: ttl) ? built-in 12 mhz oscillation circuit ? package options: 44-pin plastic qfp or tqfp 56-pin plastic lga
pedl60852-01 1 semiconductor ML60852 2/81 endpoints and fifos in the ML60852, it is possible to select by making appropriate register setting either the 5ep mode in which there are five end points or the 6ep mode in which there are six end points. although the transfer mode that can be used by ep0 is fixed, it is possible to select either the bulk transfer mode or the interrupt transfer mode for the end points ep1, ep2, and ep3, and one of the modes of isochronous, bulk, or interrupt transfer can be selected for ep4 and ep5. in addition, it is possible to selectively set the direction of data transfer for ep1 to ep5. 5ep mode 6ep mode end point fifo capacity transfer mode remarks fifo capacity transfer mode remarks ep0 reception 32 transmission 32 control transfer reception 32 transmission 32 control transfer ep1 64x2 bulk/interrupt transfer (in/out) dma possible 64x2 bulk/interrupt transfer (in/out) dma possible ep2 64x2 bulk/interrupt transfer (in/out) dma possible 64x2 bulk/interrupt transfer (in/out) dma possible ep3 32 bulk/interrupt transfer (in/out) 32 bulk/interrupt transfer (in/out) ep4 512x2 (64x2) isochronous/bulk/ interrupt transfer (in/out) dma possible 256x2 (64x2) isochronous/bulk/ interrupt transfer (in/out) dma possible ep5 ? ? 256x2 (64x2) isochronous/bulk/ interrupt transfer (in/out) dma possible fifo capacity: the unit is bytes. note 1: the selection between the 5ep mode and the 6ep mode is made by bit d2 of the register syscon. note 2: ep3 permits rate feedback data sequence toggling. note 3: ep1, ep2, and ep3 are all mutually independent, and can be assigned for bulk transfer or interrupt transfer individually. it is possible to set the maximum packet size up to 64 bytes (32 bytes for ep3) during both bulk transfer and interrupt transfer. note 4: it is possible to set ep4 and ep5 to one of the modes of isochronous transfer, bulk transfer, and interrupt transfer. the maximum packet size can be up to 64 bytes when these end points are set to bulk transfer. note 5: when using ep4 and ep5 in the isochronous transfer mode: in the 5ep mode, the maximum packet size of ep4 is 512 bytes. ep5 cannot be used. in the 6ep mode, the maximum packet size of both ep4 and ep5 is 256 bytes.
pedl60852-01 1 semiconductor ML60852 3/81 pin configuration (top view) 44-pin qfp/tqfp (top view) package dimensions (unit: mm) 44qfp 44tqfp xb 10.5 0.1 10.0 0.1 xl 14.5 0.2 12.0 0.2 yb 9.5 0.1 10.0 0.1 yl 13.5 0.2 12.0 0.2 height 2.25max 1.2max lead pitch 0.8 0.8 xl xb 33 32 31 30 29 28 27 26 25 24 23 dack0 a 0 a 1 a 2 a 3 a 4 a 5 a 6 d req1 a dsel a le/puctl d+ d- v cc test1 gnd xin xout c s r d w r rese t 34 35 36 37 38 39 40 41 42 43 44 22 21 20 19 18 17 16 15 14 13 12 1 2 3 4 5 6 7 8 9 10 11 yl yb dreq0 ad7 ad6 ad5 ad4 gnd v cc ad3 ad2 ad1 ad0 d8 d9 d10 d11 dack1 test2 d12 d13 d14 d15 i intr
pedl60852-01 1 semiconductor ML60852 4/81 56-pin lga (top view) nc d8 d9 d11 test2 d12 d14 intr nc ale/ puctl nc d10 dack1 nc d13 d15 nc reset a7 adsel rd wr a5 a6 xout cs a4 nc nc xin a2 a3 test1 gnd a0 a1 pin no.1 marking d- v cc dack0 nc ad7 ad5 nc v cc ad2 nc d+ nc dreq0 ad6 ad4 gnd ad3 ad1 ad0 nc
pedl60852-01 1 semiconductor ML60852 5/81 pin description pin name pin count i/o description d+, d- 2 i/o usb data xin, xout 2 ? pins for external crystal ad7:ad0 8 i/o data bus (lsb)/address inputs a6:a0 7 i address inputs d15:d8 8 i/o data bus (msb) cs 1 i chip select signal input pin. active ?l? rd 1 i read signal input pin. active ?l? wr 1 i write signal input pin. active ?l? intr 1 o interrupt request signal output pin dreq0 1 o dma0 request output pin dreq1 1 o dma1 request output pin dack0 1 i dma0 reception signal input pin dack1 1 i dma1 reception signal input pin ale/puctl 1 i,o address latch enable signal input pin/pull-up control pin adsel 1 i address input format select input pin reset 1 i reset signal input pin test1, test2 2 i test pin. (normally at ?l?) v cc 2 3.3 v power supply pin gnd 2 gnd 44
pedl60852-01 1 semiconductor ML60852 6/81 block diagram 6/12mhz oscillator usb transceiver multiplication circuit protocol engine 8-byte setup register register set ep0 transmit fif0 ep1 fif0 ep2 fif0 ep3 fif0 ep4 ep5 fif0 application interface xin xout 6/12mhz local mcu a6:a0 cs wr , rd intr dreq0,1 dack0,1 reset d+ d- ML60852 d15:d8 ad8:ad0 22 ? ale/puctl 1.5 k ? 22 ? consult with a crystal maker for crystal peripheral parts ep0 receive fif0
pedl60852-01 1 semiconductor ML60852 7/81 absolute maximum ratings parameter symbol condition rating unit power supply v cc ?0.3 to + 4.6 v input voltage (tolerant) v it ?0.3 to + 6.0 v input voltage (normal) v i v ss = 0 v t j = 25c ?0.3 to + v cc + 0.3 v storage temperature t stg ? ?65 to + 150 c recommended operating conditions parameter symbol condition range unit power supply v cc ? 3.0 to 3.6 v operating temperature v op ? 0 to 70 c oscillation frequency f osc ?12mhz
pedl60852-01 1 semiconductor ML60852 8/81 electrical characteristics dc characteristics (1) (v cc = 3.0 to 3.6 v, ta = 0 to +70 c) parameter symbol condition min. typ. max. unit applicable pin high-level input voltage v ih ? 2.0 ? 5.5 v low-level input voltage v il ? ?0.3 ? ?0.8 v note 1 high-level input voltage v ih ?v cc 0.8 ? v cc + 0.3 v low-level input voltage v il ? ?0.3 ? v cc 0.2 v xin v t+ ??1.52.0v v t- ?0.71.0?v schmitt trigger input voltage ? v t (v t+ ) ? (v t- )0.4 0.5 ? v reset i oh = ?100 a v cc ? 0.2 ? ? v high-level output voltage v oh i oh = ?4 ma 2.4 ? ? v i ol = 100 a ? ? 0.2 v low-level output voltage v ol i ol = 4 ma ? ? 0.4 v note 2 high-level input current i ih v ih = v cc ?0.110a low-level input current i il v il = 0v ?10 ?0.1 ? a note 3 i ozh v oh = v cc ?0.110a 3-state output leakage current i ozl v ol = 0v ?10 ?0.1 ? a d15:d8 ad7:ad0 power supply current (operating) i cc ???50av cc power supply current (standby) i ccs note 4 ? ? 100 a v cc notes: 1. applied to d15: d8, ad7: ad0, a6: a0, cs , rd , wr , dack0, dack1, ale, and adsel. 2. applied to d15: d8, ad7: ad0, a6: a0, intr , dreq 0, and dreq 1 3. applied to xin, ad7: ad0, cs , rd , wr , dack, ale, and adsel. 4. the xin pin is fixed at a high level or a low level in the suspend state. all the output pins are open. the test specification of on resistance for ale/puctl is not defined.
pedl60852-01 1 semiconductor ML60852 9/81 dc characteristics (2) usb port (v cc = 3.0 to 3.6 v, ta = 0 to +70 c) parameter symbol condition min. typ. max. unit applicable pin differential input sensitivity v di (d+) ? (d ?) 0.2 ? ? v differential common mode range v cm includes v di range 0.8 ? 2.5 v single ended receiver threshold v se ? 0.8 ? 2.0 v high-level output voltage v oh rl of 15 k ? to gnd 2.8 ? 3.6 v low-level output voltage v ol rl of 1.5 k ? to 3.6 v v ? 0.3 v output leakage current i lo 0 v pedl60852-01 1 semiconductor ML60852 10/81 signal descriptions usb interface signal type assertion description d+ i/o ? usb data (plus). this signal and the d- signal are the transmitted or received data from/to usb bus. the table below shows values and results for these signals. d- i/o ? usb data (minus). this signal and the d+ signal are the transmitted or received data from/to usb bus. the table above shows values and results for these signals. crystal oscillator interface signal type assertion description xin i ? xout o ? for internal oscillation, connect a crystal to xin and xout. for external oscillation, supply an external 12 mhz clock signal to xin. set xout to be open. d+ d- result 0 0 single end 0 0 1 differential "0" 1 0 differential "1" 1 1 undefined
pedl60852-01 1 semiconductor ML60852 11/81 application interface signal type assertion description d15: d8 i/o ? upper byte (msb) of data bus. ad7: ad0 i/o ? lower byte (lsb) of data bus when adsel is low. address and lower byte of data bus are multiplexed when adsel is high. a6: a0 i ? address when adsel is low. cs ilow chip select. when this signal is asserted low, the ML60852 is selected and ready to read or write data. this signal is invalid in single address mode during dma transfer. rd ilow read strobe. when this signal is asserted low, the read instruction is executed. wr ilow write strobe. when this signal is asserted low, the write instruction is executed. intr o (note 1) interrupt request. when this signal is asserted, the ML60852 makes an interrupt request to the application. dreq0 o (note 1) dma request. this signal requests the dma0 to make a dma transfer. dreq1 o (note 1) dma request. this signal requests the dma1 to make a dma transfer. dack0 i (note 2) dma acknowledge signal for dreq0 . this signal, when asserted, enables accessing fifos, without address bus setting. dack1 i (note 2) dma acknowledge signal for dreq1 . this signal, when asserted, enables accessing fifo, without address bus setting. ale/puctl i or o high when adsel is high, the address and cs on ad7: ad0 are latched at the trailing edge of this signal. d+ pull-up resistor connection output when adsel is low. v cc potential when bit d3 of syscon register is ?1?, and high-impedance when it is ?0?. adsel i ? when adsel is low, the address is input on a6: a0 and data is input on ad7: ad0. when adsel is high, address and data are multiplexed on ad7: ad0. reset ilow system reset. when this signal is asserted low, the ML60852 is reset. when the ML60852 is powered on, this signal must be asserted for 1 s or more. notes: 1. the assertion can be set by using the assertion select register. the default is low. 2. the assertion can be set by using the assertion select register. the default is high.
pedl60852-01 1 semiconductor ML60852 12/81 functional descriptions (1) usb interface the ML60852 is a usb device controller. the ML60852 provides the following functions which are bases for a usb protocol. therefore, the application can process a lot of its own functions. ? bit synchronization ? encoding and decoding nrzi signals. ? generating and detecting sync bytes. ? bit stuffing ? generating and checking crcs (crc5, crc16). ? encoding and decoding pid (packet identifier). 1. decoding token. 2. encoding and decoding handshake. ? generating and detecting sop. ? enpacket (packing) and depacket (unpacking) ? comparing device addresses. ? storing 8-byte setup data from a host into the setup register. ? transmitting data in transmit fifo. ? storing receive data into receive fifo of the corresponding endpoint. (2) usb transfer modes the ML60852 supports four kinds of transfer modes such as control transfer mode , interrupt transfer mode, bulk transfer mode, and isochronous transfer mode, which are specified by usb standards. (a) the control transfer mode is used to receive and respond to configurations and commands from a host, and to exchange status information between the host and peripherals. (b) the bulk transfer mode is used to transfer a lot of data in the limited service period when the band width of usb bus becomes sufficient. (c) the interrupt transfer mode is used to transfer a small amount of data unfreguently in the limited service period. (d) the isochronous transfer mode is used to continuously transfer audio data, moving pictures data and other data.
pedl60852-01 1 semiconductor ML60852 13/81 (3) endpoints and fifos in the ML60852, it is possible to select, by making appropriate setting in the syscon register, the 5ep mode in which there are five end points or the 6ep mode in which there are six end points. although the transfer mode that can be used by ep0 is fixed, it is possible to select either the bulk transfer mode or the interrupt transfer mode for the end points ep1, ep2, and ep3, and one of the modes of isochronous, bulk, or interrupt transfer can be selected for ep4 and ep5. in addition, it is possible to selectively set the direction of data transfer for ep1 to ep5. 5ep mode 6ep mode end point fifo capacity transfer mode remarks fifo capacity transfer mode remarks ep0 reception 32 transmission 32 c reception 32 transmission 32 control transfer ep1 64x2 b/int (in/out) dma possible 64x2 b/int (in/out) dma possible ep2 64x2 b/int (in/out) dma possible 64x2 b/int (in/out) dma possible ep3 32 b/int (in/out) rate 32 b/int (in/out) rate ep4 512x2 (64x2) iso/b/int (in/out) dma possible 256x2 (64x2) iso/b/int (in/out) dma possible ep5 ? ? 256x2 (64x2) iso/b/int (in/out) dma possible fifo capacity: the unit is bytes. note: transfer modes: c = control transfer b = bulk transfer int = interrupt transfer iso = isochronous transfer rate = compatible with data sequence toggling of rate feedback.
pedl60852-01 1 semiconductor ML60852 14/81 (4) operation of control transfer (a) setup stage the setup token and 8 bytes of setup data are transmitted from the host. the ML60852 decodes the setup token, and automatically stores the 8 bytes of setup data in the setup register. when this is completed normally, the ML60852 returns ack to the host. the 8-byte setup data is the standard request code defined in section 9.3 of the usb standards, or a code of the requests unique to each device class, etc. the request is decoded on the local mcu side. (b) data stage if the request specified by the 8-byte setup data is also accompanied by transfer of parameter data from the host to the device, the transfer is a control write transfer, and the out token and the data packet are transmitted from the host. when these are received normally, the ML60852 stores the parameter data in the ep0 receive fifo and returns ack to the host. if the request is accompanied by transfer of parameter data from the device to the host, the transfer is a control read transfer, and when the host sends the in token, the ML60852 sends the parameter data that was already stored beforehand in the ep0 transmit fifo by the local mcu. when the host receives this normally, it returns an ack to the ML60852. on the other hand, in the case of requests that do not contain any parameter data that need to be transmitted or received, this data stage will not be present and the processing proceeds directly to the status stage from the setup stage. (c) status stage the status stage is a stage intended for reporting the status of the result of executing a request from the device to the host. during a control write transfer or a control transfer without data, the in token is sent by the host, and the ML60852 returns a response to it. during a control read transfer, the out token and data of zero length are sent by the host, and the ML60852 returns a response to it. during the above control transfers, the local mcu need only read from or write to the 8-byte setup registers mapped at 00h to 07h, the ep0 transmit fifo mapped at 70h, and the ep0 receive fifo mapped at 78h according to the interrupt cause, and all other operations will be carried out automatically by the ML60852.
pedl60852-01 1 semiconductor ML60852 15/81 (5) data packet transmission and reception procedure during bulk transfer and interrupt transfer modes the ML60852 is normally used on the peripheral device side. in this method of use, the ML60852 is connected on one side to the host via the usb bus and is connected on the other side via a parallel interface to the local microcontroller (local mcu) inside the peripheral device. the transfer of data is the major function in all types of transfer modes other than the control transfer mode. when carrying out transfer of data packets between the ML60852 and the host, the following packet communication is carried out via the usb bus for the data transfer of each packet. (a) token packet transfer (in token or out token) from the host to the ML60852. (b) data packet transfer in the desired direction (from the host to the device or from the device to the host). (c) transfer of handshake packet in a direction opposite to that of the data packet. when packet transfer is completed normally, an ack packet is returned in step (c) and the operation proceeds to the next packet transfer. the ML60852 requests the local mcu to transmit or receive a packet of data by asserting the intr pin. the interrupt cause will be ?packet ready?. the transmit packet ready interrupt is one that requests that the packet of data to be transmitted be written in the transmit fifo, and the receive packet ready interrupt is one that requests the local mcu to read out the data that has been received and stored in the receive fifo. the above procedures of transferring one packet of data are explained below for transmission and reception separately. 1) during transmission the local mcu writes one packet of data that has to be transmitted in the transmit fifo of the corresponding ep in the ML60852, and sets the transmit packet ready bit of the corresponding ep status register of the ML60852. when the host transmits the in token packet to the ML60852 specifying the communication method, etc., the ML60852 transmits to the host the data packet stored in the above transmit fifo. when the host receives one data packet normally, it returns the ack packet to the ML60852. consequently, the ML60852 resets the transmit packet ready status, thereby completing the transfer of one data packet over the usb bus. when the transmit packet ready status is reset, the ML60852 gives a request to the local mcu in terms of a transmit packet ready interrupt thereby prompting the local mcu to write the next packet of data to be transmitted. 2) during reception the host sends to the ML60852 an out token followed by a data packet. the ML60852 stores the received data packet in the receive fifo of the corresponding ep. when it is confirmed that all the data packets have been accumulated and that there is no error, the ML60852 returns an ack packet to the host. at the same time, the receive packet ready bit of the corresponding ep status register will also be set and a request is sent to the local mcu in terms of an interrupt. upon receiving this interrupt, the local mcu reads out the received data from the ML60852 and resets the receive packet ready bit.
pedl60852-01 1 semiconductor ML60852 16/81 (6) data packet transmission and reception procedure during isochronous transfer mode transfer of data is the major function in the isochronous transfermode. when carrying out isochronous transfer between the ML60852 and the host, the following packet communications are carried out via the usb bus for the data transfer of each packet. (a) token packet transfer (in token or out token) from the host to the ML60852. (b) data packet transfer in the desired direction (from the host to the device or from the device to the host). in the isochronous transfer mode, there is no handshaking that reports whether or not the packet transfer was done normally. the ML60852 requests the local mcu to send or receive packet data by asserting the intr pin. the interrupt cause is sof. upon receiving this interrupt, the local mcu writes the packet data into the transmit fifo of the ep set for transmission (iso in) in the isochronous transfer mode, or reads out data from the receive fifo of the ep set for reception (iso out) in the isochronous transfer mode. the above procedures of transferring one packet of data are explained below for transmission and reception separately. 1) during transmission the ep for iso in has a two-layer fifo configuration. one fifo is used for storing the packet data that is written in by the mcu via the local bus. the other fifo is used for transmitting the stored data to the usb bus when an in token is received. the roles of the two fifos are interchanged when an sof packet is received. upon receiving an sof interrupt, the local mcu writes the data to be transmitted during the next frame into the corresponding transmit fifo of the ep of the ML60852. when the host transmits an in token packet, the ML60852 transmits to the host the packet data written in the transmit fifo during one frame before the current frame. 2) during reception the ep for iso out has a two-layer fifo configuration. one fifo is used for storing the packet data that is output to the local bus when the mcu reads the received packet data. the other fifo is used for storing the packet data received from the usb bus. the roles of the two fifos are interchanged when an sof packet is received. upon receiving an sof interrupt, the local mcu reads out the data that has been received during the previous frame from the corresponding receive fifo of the ep of the ML60852. when the host transmits an out token and a data packet to the ML60852, the ML60852 stores that received data packet in the receive fifo, and that data packet is read out by the local mcu during the next frame.
pedl60852-01 1 semiconductor ML60852 17/81 (7) packets and packet sizes the ML60852 packs the transmit data into packets and unpacks (restores to the original form) the received data. the packed data that is recognized by the software client is a set of data consisting of one or more packets, and this is called an i/o request (irp). among the several packets in an irp, all the packets other than the last packet are transferred with the maximum packet size. only the last packet can be transferred as a "short packet", that is, a packet whose size is less than the maximum packet size. packet 1 i/o re q uest packet ( irp ) maximum packet size packet 2 packet n-1 packet n 1 packet m bytes the ML60852 has payload registers corresponding to each end point, and it is possible to set the maximum packet size for each end point in these registers. the maximum packet size should be within the capacity of the corresponding fifo, and can be set as follows: (1) ep0 receive packet size can be 32 bytes or less; (2) ep0 transmit packet size can be 32 bytes or less; (3) ep1 transmit/receive packet size can be 64 bytes or less; (4) ep2 transmit/receive packet size can be 64 bytes or less; (5) ep3 transmit/receive packet size can be 32 bytes or less; (6) ep4 bulk/interrupt transmit/receive packet size can be 64 bytes; in the 5ep mode, the ep4 isochronous packet size can be 512 bytes or less; in the 6ep mode, the ep4 isochronous packet size can be 256 bytes or less; (7) in the 6ep mode, the ep5 bulk/interrupt packet size can be 64 bytes or less; in the 6ep mode, the ep5 isochronous packet size can be 256 bytes or less. on the usb bus, the separation between successive packets is distinguished by appending a special signal condition called eop (end of packet) at the end of each packet. the appending of eop during transmission and the detection and removal of eop during reception are carried out by the ML60852 automatically. (1) at the time of transmission, the packet is deemed to have ended when the local mcu has completed writing the required number of bytes of data in the transmit fifo and has then asserted the transmit ready status bit. (the actual addition of eop is executed at the time of transmitting the data over the usb bus after waiting for the in token from the host.) the packet will be a short packet if the transmit packet ready status bit is asserted after writing data with less number of bytes than the maximum packet size. in particular, by asserting the transmit packet ready status bit without writing any data, it is possible to form a null packet whose data length is zero.
pedl60852-01 1 semiconductor ML60852 18/81 (2) at the time of reception, when an eop is detected in the received data string, the ML608522 recognizes it as the end of the received packet and asserts the receive packet ready status bit. the number of bytes in the received packet is counted automatically by the receive byte count register (note 1) corresponding to that end point. note 1: receive byte count register address: 58h to 5dh and 74h to 75h. (8) interrupts the ML60852 requests interrupts to the local mcu, etc., by asserting the -intr pin. the interrupt causes are the following: (a) setup ready for the 8-byte setup data (b) ep0 receive packet ready (c) ep0 transmit packet ready (d) ep1 transmit/receive packet ready (e) ep2 transmit/receive packet ready (f) ep3 transmit/receive packet ready (g) ep4 transmit/receive packet ready (h) ep5 transmit/receive packet ready (i) sof (j) usb bus reset assert (k) usb bus reset de-assert (l) suspend (m) awake although there is only one intr pin, the local mcu can identify the contents of the interrupt by reading out the interrupt status register 1 (intstat1) and the interrupt status register 2 (intstat2). these interrupts can also be masked dynamically by making individual settings in the interrupt enable register 1 (intenbl1) and the interrupt enable register 2 (intenbl2). the causes of the interrupts, their setting and resetting conditions, and the responses to them are described below. the functions of the setup ready bit and the packet ready bit can, in some situations, be different from those described here because of some special automatic operations done by the ML60852. please see the descriptions of the registers ep0stat to ep5stat for more details of such functions. (1) setup ready interrupt operation source of operation description (conditions, responses, etc.) setup ready interrupt generation ML60852 the setup ready bit (d2 of ep0stat) is asserted when the 8-byte setup control data is received normally and has been stored in the set of setup registers. an interrupt is generated at this time if d1 of intenbl1 has been asserted. the firmware can now read the set of setup registers. end of setup ready interrupt local mcu (firmware) after making the firmware read the 8-byte setup data, write a ?1? in bit d2 of ep0 status register (ep0stat). this causes the interrupt to be de-asserted. the interrupt will not be de-asserted if a new 8-byte setup data is received during this period. in this case, discard the setup data that was being read at that time and read the new 8-byte setup data.
pedl60852-01 1 semiconductor ML60852 19/81 (2) ep0 receive packet ready interrupt this is used mainly during the reception of a data packet in a control write transfer. operation source of operation description (conditions, responses, etc.) ep0 receive packet ready interrupt generation ML60852 the ep0 receive packet ready bit (d0 of ep0stat) is asserted during a control write transfer when the processing has changed from the setup stage to the data stage, and the ML60852 has detected eop of the data packet and has stored the data without error in the ep0 receive fifo. the end of a packet is recognized when an eop has arrived in the cases of both full packets and short packets. an interrupt is generated at this time, if the ep0 receive packet ready interrupt enable bit (d6 of intenbl1) has been asserted. (eop: end of packet) end of ep0 receive packet ready interrupt local mcu (firmware) in the case of ep0 reception, after the number of bytes of the ep0 receive fifo data indicated by the ep0 receive byte count register (ep0rxcnt) has been read, write a ?1? to the ep0 receive packet ready bit (bit d0 of ep0stat). (this status is reset when a ?1? is written in this bit.) note: a short packet is a packet with a number of bytes less than the maximum packet size.
pedl60852-01 1 semiconductor ML60852 20/81 (3) ep0 transmit packet ready interrupt this is used mainly during the transmission of a data packet in a control read transfer. operation source of operation description (conditions, responses, etc.) ep0 transmit packet ready interrupt generation ML60852 the ep0 transmit packet ready bit (d1 of ep0stat) is de- asserted during a control read transfer when the processing has changed from the setup stage to the data stage, and it is possible to write the transmit data to the fifo. at this time, an interrupt is generated if the ep0 transmit packet ready interrupt enable bit (bit d7 of intenbl1) has been asserted. for the second and subsequent packets, in addition to this condition, before the interrupt is generated, it is necessary for an ack response to come from the host for the packet that has just been sent. end of ep0 transmit packet ready interrupt local mcu (firmware) in the case of ep0 transmission, after the one packet of the ep0 transmit data has been written in ep0txfifo, write a ?1? into the ep0 transmit packet ready bit (bit d1 of ep0stat). this puts the ML60852 in a state in which it can transmit the data (that is, it can transmit the data packet when an in token arrives), and the intr pin is de-asserted at the same time. even when the number of bytes in the write data is less than the maximum packet size, it is possible to transmit the data by writing a ?1? into the transmit packet ready status bit. this makes it possible to transmit a short packet.
pedl60852-01 1 semiconductor ML60852 21/81 (4) receive packet ready interrupts (ep1, ep2, ep3, ep4 bulk, ep5 bulk) these interrupts are generated when the respective ep has received an appropriate data packet from the usb bus and the local mcu can read that data. operation source of operation description (conditions, responses, etc.) receive packet ready interrupt generation ML60852 the receive packet ready bit (d0) of the corresponding ep status register (epnstat) is asserted during data reception when the eop of the data packet has been received and the data has been stored without error in the corresponding fifo. the end of a packet is recognized when an eop has arrived in the cases of both full packets and short packets. an interrupt is generated at this time, if the corresponding receive packet ready interrupt enable bit has been asserted. (eop: end of packet) end of receive packet ready interrupt local mcu (firmware) after the number of bytes in the receive fifo data (epnfifo) indicated by the corresponding receive byte count register (epnrxcnt) has been read, write a ?1? into the receive packet ready bit d0 of the corresponding ep status register (epnstat). (this status is reset when a ?1? is written in this bit.)
pedl60852-01 1 semiconductor ML60852 22/81 (5) transmit packet ready interrupts (ep1, ep2, ep3, ep4 bulk, ep5 bulk) these interrupts are generated when it is possible for the local mcu to write the data packet to be sent to the usb bus from the corresponding ep. operation source of operation description (conditions, responses, etc.) transmit packet ready interrupt generation ML60852 (1) in the case of bulk transfer and interrupt transfer when the respective ep has been set for transmission, the transmit packet ready bit of the corresponding ep (bit d1 of epnstat) is de-asserted when it is possible to write the transmit data into the fifo. at this time, an interrupt is generated if the corresponding ep transmit packet ready interrupt enable bit (intenbl1) has been asserted. for the second and subsequent packets, in addition to this condition, before the interrupt is generated, it is necessary for an ack response to come from the host for the packet that has just been sent. end of transmit packet ready interrupt local mcu (firmware) (1) in the case of bulk transfer and interrupt transfer after the one packet of the corresponding ep transmit data has been written in epntxfifo, write a ?1? into the corresponding transmit packet ready bit (bit d1 of epnstat). this puts the ML60852 in a state in which it can transmit the data and the intr pin is de-asserted at the same time. even when the number of bytes in the write data is less than the maximum packet size, it is possible to end the pocket transmission by writing a ?1? into the transmit packet ready status bit.
pedl60852-01 1 semiconductor ML60852 23/81 (6) sof interrupt operation source of operation description (conditions, responses, etc.) sof interrupt generation ML60852 when an sof packet is detected on the usb bus. end of sof interrupt local mcu (firmware) when a ?1? is written in the corresponding bit of the interrupt status register 2 (intstat2). (7) usb bus reset assert interrupt operation source of operation description (conditions, responses, etc.) usb bus reset assert interrupt generation ML60852 the ML60852 automatically detects the condition when the se0 state continues for 2.5s or longer at the d+ and d- pins. carry this out by firmware processing for bus reset. end of usb bus reset assert interrupt local mcu (firmware) when a ?1? is written in the corresponding bit of the interrupt status register 2 (intstat2). (8) usb bus reset de-assert interrupt operation source of operation description (conditions, responses, etc.) usb bus reset de-assert interrupt generation ML60852 when there is a recovery to the j state from the se0 state of 2.5s or longer at the d+ and d- pins. carry this out by firmware processing for bus reset release. end of usb bus reset de-assert local mcu (firmware) when a ?1? is written in the corresponding bit of the interrupt status register 2 (intstat2).
pedl60852-01 1 semiconductor ML60852 24/81 (9) suspend state interrupt operation source of operation description (conditions, responses, etc.) suspend state interrupt generation ML60852 when the idle condition persists for 3ms or more at the d+ and d- pins. the internal oscillations in the ML60852 are stopped automatically when the idle condition continues for an additional 2ms after this interrupt has been generated. the firmware can take steps to put the device in the power save mode. end of suspend state interrupt local mcu (firmware) when a ?1? is written in the corresponding bit of the interrupt status register 2 (intstat2). (10) awake interrupt operation source of operation description (conditions, responses, etc.) awake interrupt generation ML60852 when the resume signal (the se0 state of about 1344ns immediately after the k state) is detected at the d+ and d- pins. end of awake interrupt local mcu (firmware) when a ?1? is written in the corresponding bit of the interrupt status register 2 (intstat2).
pedl60852-01 1 semiconductor ML60852 25/81 (9) dma (direct memory access) it is possible to carry out 8-bit wide or 16-bit wide dma transfer for the bulk transfer of ep1, ep2, ep4, and ep5, and for the isochronous transfer of ep4 and ep5. the data bus used is the following: during 8-bit transfer: ad7 to ad0 during 16-bit transfer: d15 tod8, ad7 to ad0 it is possible to carry out dma transfers over two channels, channel 0 and channel 1. both demand transfer and single transfer are supported. the settings of the dma transfer mode and parameters are done using the dma control register and the dma interval register described later in this manual. in the demand transfer mode, the dreq pin is asserted when the reading or writing of a data packet becomes possible. the dreq pin is de-asserted when the transfer of all the data of the receive packets is completed by the external dma controller. therefore, other devices cannot access the local bus during dma transfer. on the other hand, in the single transfer mode, the dreq pin is de-asserted at the end of transfer of the number of bytes (or words) of one transfer, and the other devices can access the local bus during this period. (10) power-down when the ML60852 detects the suspend state on the usb bus, it automatically stops the internal oscillations and enters the power-down state. when the resume signal is detected on the usb bus, the oscillations are restarted automatically and the power-down state is released.
pedl60852-01 1 semiconductor ML60852 26/81 (11) operation of 2-layer structure fifo during bulk transfer the fifos of ep1 and ep2 have a 64 bytes x 2-layer structure. also, when ep4 is assigned for bulk transfer, its fifo also has a 64-bytes x 2-layer structure. as a consequence, these fifos can temporarily store a maximum of 128 bytes of bulk transfer data. (1) 2-layer reception operation (?o? indicates the assert condition and ?x? indicates de-assert condition) in the case of 1 2 3 4 5a 6 in the case of 1 2 3 4 5b 6 layer a 64 bytes layer b 64 bytes layer a pkt rdy layer b pkt rdy epn receive pkt rdy intr 1 start storing data in layer a of reception x x x x 2 data of one packet has been stored. x 3 start reception and storing of data in layer b. x 4 local mcu starts reading layer a. x 5a when the storing of packet in layer b is completed following the completion of reading layer a. 5b when the reading of packet in layer a is completed following the completion of storing data in layer b. xxxx 6 from 5a: layer a has become empty. from 5b: layer b has become full. x 7 starting reading layer b also. x ? when one packet of receive data is stored in layer a of the fifo and eop is received, the ML60852 asserts the packet ready bit of epn and also asserts the intr pin. this makes it possible for the local mcu to read the receive data. ? subsequently, data can be received from the host, and the ML60852 switches the fifo for storing to layer b. ? when one packet of data described above has been read from layer a of the fifo, make the local mcu reset the receive packet ready status of epn (by writing a ?1? into bit d0 of epnstat). ? at the time the epn receive packet ready status is reset, if the reception of layer b has not been completed, the ML60852 resets the epn receive packet ready status and de-asserts the intr pin. ? however, if the reception of layer b has been completed a the time the epn receive packet ready status is reset, the ML60852 rejects the request from the local mcu to reset the epn receive packet ready status, and continues to maintain the epn receive packet ready status and the asserted condition of the intr pin.
pedl60852-01 1 semiconductor ML60852 27/81 (2) 2-layer transmission operation (?o? indicates the assert condition and ?x? indicates de-assert condition) in the case of 1 2 3 4 5a 6 in the case of 1 2 3 4 5b 6 layer a 64 bytes layer b 64 bytes layer a pkt rdy layer b pkt rdy epn transmit pkt rdy intr 1 layer a and layer b are both empty. x x x 2 the local mcu starts writing into layer a. x x x 3 writing of one packet is completed. x x 4 the data of layer a is transmitted and the next packet is written in layer b. xx 5a when layer a has become empty after the writing in layer b is completed. x 5b when the writing in layer b has been completed after layer a has become empty. xx x 6 from 5a: layer a has become empty. from 5b: layer b has become full. xx 7 transmission of layer b is also started. x x ? if the epn transmit packet ready interrupt enable bit of intenbl1 has been asserted, the transmit fifo is empty, and epn transmit packet ready bit is de-asserted, the epn transmit packet ready interrupt is asserted. this makes it possible to write the transmit data into the epn transmit fifo. ? when the data of one packet is written in layer a fifo, make the local mcu set the transmit packet ready status (bit d1 of epnstat). by setting the transmit packet ready status, it becomes possible to transmit data to the host. at this time, since layer b is still empty, the intr pin maintains the asserted condition, thereby indicating that the next packet data can be written. in this case, although bit d1 of epnstat remains in the '0' condition, the ML60852 recognizes that transmission is possible from layer a and starts transmission when an in token is received from the host. ? it is possible for the local mcu to write the next packet of transmit data in the layer b fifo while the data in layer a is being transmitted over the usb bus. ? when the writing of the data to be transmitted in layer b has been completed, the local mcu sets the transmit packet ready bit, and the intr pin becomes de-asserted at this time if the transmission of layer a data has not been completed (that is, the ack message is received from the host and the transmit packet ready bit is reset). the local mcu cannot yet write the subsequent packet.) ? if the layer a becomes empty before layer b goes into the transmit enable condition and transmission is carried out normally, the ack response is received from the host. the intr pin remains asserted, and the local mcu can write data into layer a fifo after writing into layer b fifo. ? the transmission of data in layer a is continued from the state 4a, and when layer a becomes empty and the transmission is completed normally, the ack response is received from the host, whereupon the ML60852 asserts the intr pin thereby prompting the local mcu to write data into layer a.
pedl60852-01 1 semiconductor ML60852 28/81 (12) error processing and retry operation 1) error processing during transmission when an error such as a crc error is detected in the data transmitted by the ML60852, the host will not send the ack packet, and hence the ML60852 does not reset the transmit packet ready status, but waits while retaining the current packet of data. the current packet of data is transmitted again when the next in token is received from the host. 2) error processing during reception when an error is detected in the data received over the usb bus, the ML60852 does not assert the interrupt signal to the local mcu and will also not send any message to the host (leading to a timeout condition). when the timeout condition is generated, the host recognizes that an error has occurred, and can take measures such as re-transmitting the data, etc. in addition, since no interrupt request is generated, the local mcu will not read the erroneous data.
pedl60852-01 1 semiconductor ML60852 29/81 (13) d+ pull-up control immediately after the power is switched on, the device may not be able to receive the token sent from the host because the preparations at the firmware level have not been completed. in this case, until the initialization at the firmware level is completed, the d+ line of the usb connector (the d- line in the case of a low speed device) is turned off, and the 1.5k pull-up resistor is turned on after the initialization has been completed. to do this, a switch circuit that can be turned on or off by the local mcu is provided in series with the 1.5k resistor. in the ML60852, although it is possible to provide such switch circuits externally, it is also possible to use the internal switch circuit in the adsel=0 state as shown in the following figure. the internal switch can be switched on or off uniquely by the value of the bit d3 of the syscon register. ale/puctl v cc d3 of the syscon usb transceiver d+ d- 1.5k adsel gnd ML60852
pedl60852-01 1 semiconductor ML60852 30/81 internal registers the register file of the ML60852 includes registers to set operating conditions and registers to report the status of operating and the results of processing. these registers are read-only registers, write-only register and read/write registers in view of the mcu of the application. the setup registers in which setup data to be transfered from a host via the control pipe is stored are mapped in the addresses of the register file. moreover, the data phase data in the control transfer mode and transmit/receive data in other transfer modes are mapped in the addresses of the register file. the mapping of these registers are described in the following pages.
pedl60852-01 1 semiconductor ML60852 31/81 address and names of registers category address symbol r/w register name 70h ep0txfifo w ep0 transmit fifo 78h ep0rxfifo r ep0 receive fifo 79h ep1fifo r or w ep1 transmit/receive fifo 7ah ep2fifo r or w ep2 transmit/receive fifo 7bh ep3fifo r or w ep3 transmit/receive fifo 7ch ep4fifo r or w ep4 transmit/receive fifo 7dh ep5fifo r or w ep5 transmit/receive fifo fifo 00h bmrequesttype r brequest type setup register 01h brequest r brequest setup register 02h wvaluelsb r wvaluelsb setup register 03h wvaluemsb r wvaluemsb setup register 04h windexlsb r windexlsb setup register 05h windexmsb r windexmsb setup register 06h wlengthlsb r wlengthlsb setup register 07h wlengthmsb r wlengthmsb setup register 20h dvcadr r/w device address register 21h intstat1 r/rst interrupt status register 1 22h intstat2 r/rst interrupt status register 2 24h intenbl1 r/w interrupt enable register 1 25h intenbl2 r/w interrupt enable register 2 2dh framelsb r frame number lsb register 2eh framemsb r frame number msb register 2fh syscon r/w system control register 30h polsel r/w polarity selection register common 10h dma0con r/w dma0 control register 11h dma0intvl r/w dma0 interval register 12h dma1con r/w dma1 control register 13h dma1intvl r/w dma1 interval register dma
pedl60852-01 1 semiconductor ML60852 32/81 address and names of registers (continued) category address symbol r/w register name 40h ep0conf r/w ep0 configuration register 41h ep1conf r/w ep1 configuration register 42h ep2conf r/w ep2 configuration register 43h ep3conf r/w ep3 configuration register 44h ep4conf r/w ep4 configuration register 45h ep5conf r/w ep5 configuration register 48h ep0cont r/w ep0 control register 49h ep1cont r/w ep1 control register 4ah ep2cont r/w ep2 control register 4bh ep3cont r/w ep3 control register 4ch ep4cont r/w ep4 control register 4dh ep5cont r/w ep5 control register 50h ep0pld r/w ep0 payload register 51h ep1pld r/w ep1 payload register 52h ep2pld r/w ep2 payload register 53h ep3pld r/w ep3 payload register 54h ep4pldlsb r/w ep4 payload lsb register 55h ep5pldlsb r/w ep5 payload lsb register 58h ep0rxcnt r ep0 receive byte counter register 59h ep1rxcnt r ep1 receive byte counter register 5ah ep2rxcnt r ep2 receive byte counter register 5bh ep3rxcnt r ep3 receive byte counter register 5ch ep4rxcntlsb r ep4 receive byte counter lsb register 5dh ep5rxcntlsb r ep5 receive byte counter lsb register ep support
pedl60852-01 1 semiconductor ML60852 33/81 address and names of registers (continued) category address symbol r/w register name 60h ep0stat ep0 status register 61h ep1stat ep1 status register 62h ep2stat ep2 status register 63h ep3stat ep3 status register 64h ep4stat ep4 status register 65h ep5stat ep5 status register 6ch ep4pldmsb r/w ep4 payload msb register 6dh ep5pldmsb r/w ep5 payload msb register 74h ep4rxcntmsb r ep4 receive byte counter msb register 75h ep5rxcntmsb r ep5 receive byte counter msb register ep support 39h pkterr r packet error register 1 option
pedl60852-01 1 semiconductor ML60852 34/81 functions of registers ep0 transmit fifo (ep0txfifo) address 0 x 70 type byte data access type write only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware resetxxxxxxxx after a bus reset xxxxxxxx definition ep0 transmit data the ep0 transmit data can be written in by writing to the address 70h. the transmit data to the host in the data stage during a control read transfer is stored in ep0txfifo. when the ML60852 issues an ep0 transmit packet ready interrupt request, the local mcu writes the transmit data to the address 70h. it is possible to write the packet data successively by writing continuously. the ep0txfifo is cleared under the following conditions. 1. when an ack signal is received from the host for the data transmission from ep0 2. when a setup packet is received ep0 receive fifo (ep0rxfifo) address 0 x 78 type byte data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware resetxxxxxxxx after a bus reset xxxxxxxx definition ep0 receive data the receive data from the host computer in the data sate during a control write transfer is stored in eporxfifo. the epo receive data can be read out by the local mpu through reading the address 78h when the ML60852 issues an epo receive packet ready interrupt request. it is possible to read successively the data in the packet by reading continuously. the ep2rxfifo is cleared under the following conditions: 1. when the local mpu resets the epo receive packet ready bit. 2. when a setup packet is received. 3. when the local mcu writes a ?0? in the stall bit.
pedl60852-01 1 semiconductor ML60852 35/81 ep1 fifo (ep1fifo) address 0 x 79 type byte data access type write only or read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware resetxxxxxxxx after a bus reset xxxxxxxx definition ep1 transmit data or ep1 receive data it is possible to specify the direction of transfer of ep1 by setting the ep1 configuration register ep1conf. the fifo address of ep1 is the same in both the transmit direction and the receive direction. when ep1conf (d7) = 0, ep1 is in the receive direction and ep1fifo is in the read-only state. when ep1conf (d7) = 1, ep1 is in the transmit direction and ep1fifo is in the write-only state. when set for transmission, all bytes of ep1fifo can be cleared by clearing ep1fifo (writing a ?1? into ep1cont (d2)). ep2 fifo (ep2fifo) address 0 x 7a type byte data access type write only or read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware resetxxxxxxxx after a bus reset xxxxxxxx definition ep2 transmit data or ep2 receive data it is possible to specify the direction of transfer of ep2 by setting the ep2 configuration register ep2conf. the fifo address of ep2 is the same in both the transmit direction and the receive direction. when ep2conf (d7) = 0, ep2 is in the receive direction and ep2fifo is in the read-only state. when ep2conf (d7) = 1, ep2 is in the transmit direction and ep2fifo is in the write-only state. when set for transmission, all bytes of ep2fifo can be cleared by clearing ep2fifo (writing a ?1? into ep2cont (d2)).
pedl60852-01 1 semiconductor ML60852 36/81 ep3 fifo (ep3fifo) address 0 x 7b type byte data access type write only or read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware resetxxxxxxxx after a bus reset xxxxxxxx definition ep3 transmit data or ep3 receive data it is possible to specify the direction of transfer of ep3 by setting the ep3 configuration register ep3conf. the fifo address of ep3 is the same in both the transmit direction and the receive direction. when ep3conf (d7) = 0, ep3 is in the receive direction and ep3fifo is in the read-only state. when ep3conf (d7) = 1, ep3 is in the transmit direction and ep3fifo is in the write-only state. when set for transmission, all bytes of ep3fifo can be cleared by clearing ep3fifo (writing a ?1? into ep3cont (d2)). ep4 fifo (ep4fifo) address 0 x 7c type byte data access type write only or read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware resetxxxxxxxx after a bus reset xxxxxxxx definition ep4 transmit data or ep4 receive data it is possible to specify the direction of transfer of ep4 by setting the ep4 configuration register ep4conf. the fifo address of ep4 is the same in both the transmit direction and the receive direction. when ep4conf (d7) = 0, ep4 is in the receive direction and ep4fifo is in the read-only state. when ep4conf (d7) = 1, ep4 is in the transmit direction and ep4fifo is in the write-only state. when set for transmission, all bytes of ep4fifo can be cleared by clearing ep4fifo (writing a ?1? into ep4cont (d2)).
pedl60852-01 1 semiconductor ML60852 37/81 ep5 fifo (ep5fifo) address 0 x 7d type byte data access type write only or read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware resetxxxxxxxx after a bus reset xxxxxxxx definition ep5 transmit data or ep5 receive data in the ML60852, by making a setting of the system control register, it is possible to select either the 5ep mode with the number of eps being 5 or the 6ep mode with the number of eps being 6. in the 5ep mode, only ep0 to ep4 are present and ep5 will not be present. in the ep6 mode, all end points ep0 to ep5 will be valid. it is possible to specify the direction of transfer of ep5 by setting the ep5 configuration register ep5conf. the fifo address of ep5 is the same in both the transmit direction and the receive direction. when ep5conf (d7) = 0, ep5 is in the receive direction and ep5fifo is in the read-only state. when ep5conf (d7) = 1, ep5 is in the transmit direction and ep5fifo is in the write-only state. when set for transmission, all bytes of ep5fifo can be cleared by clearing ep5fifo (writing a ?1? into ep5cont (d2)).
pedl60852-01 1 semiconductor ML60852 38/81 bmrequesttype setup register (bmrequesttype) address 0 x 00 type bit map access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition type receiving side definitions during the setup stage of control transfer based on a request from the host, the 8-byte setup data transmitted by the host is automatically received by the ML60852 and is stored in the 8 registers including this register. the formats of these data items are defined in section 9.3 of the usb standards. brequest setup register (brequest) address 0 x 01 type byte data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware resetxxxxxxxx after a bus reset xxxxxxxx definition request code during the setup stage of control transfer based on a request from the host, the 8-byte setup data transmitted by the host is automatically received by the ML60852 and the second byte is stored in this register. the content of the request code is defined in section 9.3 of the usb standards and in the related standards. 0 = device 1 = interface 2 = end point 3 = others 4 to 31 = reserved 0 = standard 1 = class 2 = vendor 3 = reserved data transfer direction 0 = from the host to the device 1 = from the device to the host
pedl60852-01 1 semiconductor ML60852 39/81 wvaluelsb setup register (wvaluelsb) address 0 x 02 type 2-byte data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition wvaluelsb during the setup stage of control transfer based on a request from the host, the 8-byte setup data transmitted by the host is automatically received by the ML60852 and the third byte is stored in this register. this is the lower-order byte of the two-byte data. wvaluemsb setup register (wvaluemsb) address 0 x 03 type 2-byte data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition wvaluemsb during the setup stage of control transfer based on a request from the host, the 8-byte setup data transmitted by the host is automatically received by the ML60852 and the fourth byte is stored in this register. this is the higher-order byte of the two-byte data.
pedl60852-01 1 semiconductor ML60852 40/81 windexlsb setup register (windexlsb) address 0 x 04 type 2-byte data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition windexlsb during the setup stage of control transfer based on a request from the host, the 8-byte setup data transmitted by the host is automatically received by the ML60852 and the fifth byte is stored in this register. this is the lower-order byte of the two-byte data. windexmsb setup register (windexmsb) address 0 x 05 type 2-byte data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition windexmsb during the setup stage of control transfer based on a request from the host, the 8-byte setup data transmitted by the host is automatically received by the ML60852 and the sixth byte is stored in this register. this is the higher-order byte of the two-byte data.
pedl60852-01 1 semiconductor ML60852 41/81 wlengthlsb setup register (wlengthlsb) address 0 x 06 type 2-byte data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition wlengthls during the setup stage of control transfer based on a request from the host, the 8-byte setup data transmitted by the host is automatically received by the ML60852 and the seventh byte is stored in this register. this is the lower- order byte of the two-byte data. wlengthmsb setup register (wlengthmsb) address 0 x 07 type 2-byte data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition wlengthmsb during the setup stage of control transfer based on a request from the host, the 8-byte setup data transmitted by the host is automatically received by the ML60852 and the eighth byte is stored in this register. this is the higher-order byte of the two-byte data.
pedl60852-01 1 semiconductor ML60852 42/81 dma0,1 control registers (dma0, 1con) address 0 x 10, 0 x 12 type bit map access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset the previous value is retained definition note 1: during the 16-bit mode, the higher order byte of the leading word will be 00h. note 2: the higher order byte and the lower order byte are allocated in the little-endian sequence. that is, the lsb corresponds to ad0 to ad7 and the msb corresponds to d8 to d15. during the 16-bit mode and when the packet size is an odd number of bytes, the higher order byte of the last word will be 00h. note 3: when the ep specifications for the dma channels 0 and 1 both have the same values, dreq0, dreq 1 and dack0, dack 1 will respectively be equivalent. note 4: the settings of all bits other than bit d7, that is, of bits d0 to d6 should be completed at the time of initialization (at the latest, before a token packet for ep1 to ep5 arrives), and should not be altered thereafter. write a ?1? to d7 in order to temporarily stop dma transfer in the middle. when the transfer is restarted by writing a ?0? to d7, it is possible to restart the transfer from the byte (or word) next to the one at which the transfer was interrupted. dma enable 0 = dma disabled 1=dma enabled dma transfer data width 0 = byte width (8 bits) 1 = word width (16 bits) (note 2) dma transfer mode 0=single transfer mode 1=demand transfer mode dma address mode 0 = single address mode 1 = dual address mode dma byte count 0 = the number of bytes is not inserted 1 = the data of the number of bytes is inserted in the leading byte or leading word of the transfer data. (note 1) ep specification specifies the target ep for the dma transfer 0=ep1, 1=ep2, 2=ep4, 3=ep5 (note 3) dma interrupting (note 4) 0=normal operation 1=the dreq pin is de-asserted
pedl60852-01 1 semiconductor ML60852 43/81 dma0, 1 interval registers (dma0, 1intvl) address 0 x 11, 0 x 13 type byte data access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset the previous value is retained definition interval time this specifies the interval in the single dma transfer mode, that is, the time duration after the end of dma transfer of the previous byte (or the previous word) until dreq is asserted again. the time for 1 bit is 84ns (12 mhz, period of one-cycle). interval time = (dreq enable time) + 84xn (ns) see the description of the dma transfer timings (1), (2), (5), and (6) for the dreq enable time.
pedl60852-01 1 semiconductor ML60852 44/81 device address register (dvcadr) address 0 x 20 type 7-bit data access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset definition device address (r/w) the device address given by a set_address request from the host is written in this register by the local mcu. thereafter, the ML60852 judges the specified address in the token from the host, and this device will process only the token packets sent to this device address. bit d7 is fixed at ?0?, and even if a ?1? is written, it will be ignored.
pedl60852-01 1 semiconductor ML60852 45/81 interrupt status register 1 (intstat1) address 0 x 21 type bit map access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset xxxxxxx0 definition note: when isochronous transfer has been set in the ep4 or ep5 configuration register, the ep4 or ep5 packet ready interrupt status will always be fixed at ?0?. setup ready interrupt status (stup_ry) ep1 packet ready interrupt status (ep1_pry) ep3 packet ready interrupt status (ep3_pry) ep4 packet ready interrupt status (ep4_pry) (note) ep2 packet ready interrupt status (ep2_pry) ep5 packet ready interrupt status (ep5_pry) (note) ep0 receive packet ready interrupt status ep0 transmit packet ready interrupt status
pedl60852-01 1 semiconductor ML60852 46/81 interrupt status register 2 (intstat2) address 0 x 22 type bit map access type read/reset d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 0 0 0 the status bit becomes ?1? when the corresponding interrupt is generated. the status is cleared when a ?1? is written in that status bit itself. (see section (8) ?interrupt? of functional descriptions.) sof interrupt status (sof) device suspend state interrupt status (suspend) device awake state interrupt status (awake) usb bus reset assert interrupt status (busrst_ass) usb bus reset de-assert interrupt status (busrst_des)
pedl60852-01 1 semiconductor ML60852 47/81 interrupt enable register 1 (intenbl1) address 0 x 24 type bit map access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000001 after a bus reset the previous value is retained definition setup ready interrupt enable (stup_ry) ep1 packet ready interrupt enable (ep1_pry) ep3 packet ready interrupt enable (ep3_pry) ep4 packet ready interrupt enable (ep4_pry) ep2 packet ready interrupt enable (ep2_pry) ep5 packet ready interrupt enable (ep5_pry) ep0 receive packet ready interrupt enable (ep0rx_pry) ep0 transmit packet ready interrupt enable (ep0tx_pry)
pedl60852-01 1 semiconductor ML60852 48/81 interrupt enable register 2 (intenbl2) address 0 x 25 type bit map access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset the previous value is retained definition 0 0 0 sof interrupt enable (sof) device suspend state interrupt enable (suspend) device awake state interrupt enable (awake) usb bus reset assert interrupt enable (busrst_ass) usb bus reset de-assert interrupt enable (busrst_des)
pedl60852-01 1 semiconductor ML60852 49/81 frame number lsb register (framelsb) address 0 x 2d type 11-bit data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition frame number lsb this is valid when containing an end point in the isochronous transfer mode. when a start of frame (sof) packet is transmitted by the host, the ML60852 automatically writes into the framelsb and framemsb registers. frame number msb (framemsb) address 0 x 2e type 11-bit data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition frame number msb this is valid when containing an end point in the isochronous transfer mode. when a start of frame (sof) packet is transmitted by the host, the ML60852 automatically writes into the framelsb and framemsb registers.
pedl60852-01 1 semiconductor ML60852 50/81 system control register (syscon) address 0 x 2f type bit map access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset the previous value is retained definition 0 software reset: write-only bit. even when this bit is read out, it will be fixed at ?0?. a system reset is executed when a ?1? is written in this bit. this is functionally equivalent to a hardware reset. however, this bit itself will always remain ?0?. power-down mode: read/write bit. when this bit is ?0?, the oscillations will not be stopped even during the suspend mode. when this bit is made ?1?', the oscillations will be stopped in the suspend mode and the device goes into the power save mode. ep mode: read/write bit. the 6ep mode is selected when this bit is 0 and the 5ep mode is selected when this bit is ?1?. pull-up control: the content of this bit becomes valid when the adsel pin is ?l?. when the adsel pin is ?l?, the internal switch becomes on and the ale pin is pulled up to the vcc level if this bit is ?1?. on the other hand, if the adsel pin is ?l? and also this bit is ?0?, the internal switch is made off and the ale pin goes into the high impedance state. remote wakeup: a remote wakeup is executed when a ?1? is written in this bit. however, this bit itself will always remain ?0?. pll enable: this bit is for enabling the internal pll. the internal pll cannot be used when this bit is ?0?. the signal input to the xin pin becomes the source oscillations for the internal circuits. the internal pll can be used when this bit is ?1?. pll multiplication factor selection: the frequency multiplication factor is 4 when this bit is ?0?, and will be 8 when this bit is ?1?. (the source oscillator frequency will be 12mhz in the 4x mode and will be 6mhz in the 8x mode.) software reset (r/w) (sereset) pull-up control (r/w) (plup) remote wakeup (r/w) pll enable (pll_enable) pll multiplication factor selection (fsel) ep mode (r/w) (ep_mod) 0 = ep0 to ep5 1 = ep0 to ep4 power-down mode (r/w) (power) 0 = power saving is not done in the suspend mode. 1 = power saving is done in the suspend mode.
pedl60852-01 1 semiconductor ML60852 51/81 polarity selection register (polsel) address 0 x 30 type bit map access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset the previous value is retained definition 0 0 0 dreq0 polarity 0 = active low 1 = active hi g h dack0 polarity 0 = active high 1 = active low dreq1 polarity 0 = active low 1 = active high dack1 polarity 0 = active high 1 = active low intr polarity 0 = active low 1 = active high
pedl60852-01 1 semiconductor ML60852 52/81 ep0 configuration register (ep0conf) address 0 x 40 type bit map access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00010000 definition 0 0 0 0 0 0 0 transfer type: although these bits indicate the type of transfer, since ep0 has been fixed for control transfer in the ML60852, this value is always fixed at 00h. the local mcu cannot write into these bits. configuration bit: the configuration bit of ep0 becomes ?1? after a usb bus reset. when this bit is ?1?, the data transmitted by the host to the end point can be received and also data can be transmitted from the end point to the host. when this bit is ?0?, this lsi will not respond to any transaction targeting this end point. this bit cannot be written in by the local mcu. transfer type (read only) 00 = control transfer configuration bit (read only)
pedl60852-01 1 semiconductor ML60852 53/81 ep1, 2, 3, 4, 5 configuration registers (ep1,2,3,4,5conf) address 0 x 41 to 45 type bit map access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00010000 definition 0 0 0 0 transfer type: these bits indicate the type of transfer. only ep4 and ep5 can be set to isochronous transfer. configuration bit: when a set configuration request to make that ep active is received from the host, make sure that the local mcu writes a ?1? into this bit during the status stage in the control transfermode. data transmission and reception can be made between the host and the ep when this bit is ?1?. when this bit is ?0?, this lsi will not respond to the transactions targeted at that ep. transfer direction: set the direction of data transfer using this bit. transfer type 10 = bulk transfer 11 = interrupt transfer 01 = isochronous transfer configuration bit transfer direction 0=reception, 1=transmission
pedl60852-01 1 semiconductor ML60852 54/81 ep0 control register (ep0cont) address 0 x 48 type bit map access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset 0 0 0 x 0 0 x 0 after a bus reset 0 0 0 x 0 0 x 0 definition 0 0 0 0 0 stall bit: during ep0 reception (data stage of a control write transfer), if a packet with a number of bytes exceeding the maximum packet size specified in ep0pld is received (or if the eop packet is missing), the ML60852 automatically sets this bit to ?1?. in order to conform to the protocol stall of usb rev. 1.1, this bit is reset automatically to ?0? when a setup packet is received. data sequence toggle bits: the ML60852 automatically carries out synchronization using the data sequence toggle mechanism. further, any write operation to these bits (d4 and d1) will be invalid. stall bit (r/w) data sequence toggle bit (reception) data sequence toggle bit (transmission)
pedl60852-01 1 semiconductor ML60852 55/81 ep1, 2, 3, 4, 5 control registers (ep1,2,3,4,5cont) address 0 x 49 to 4d type bit map access type see below d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 0 0 0 0 stall bit: during ep0 reception (data stage of a control write transfer), if a packet with a number of bytes exceeding the maximum packet size specified in ep0pld is received (or if the eop packet is missing), the ML60852 automatically sets this bit to ?1?. data sequence toggle bit: a reset will be made when a ?1? is written in this bit. at the time of initializing the ep, reset the toggle bit of the data packet by writing a ?1? to this bit, and specify pid of data0 (this bit too will become ?0?). thereafter, the synchronization operation using the data sequence toggle mechanism will be made automatically. fifo clear: the ep will be valid only when it has been set for transmission by the ep control register. when a ?1? is written in this bit, the transmit fifo of that ep will be cleared. (however, this bit itself will remain ?0?.) rate feedback: this bit is valid only in the case of ep3. this bit will be fixed at ?0? in all other eps. stall bit (r/w) data sequence toggle bit (r/reset) fifo clear (r/reset) rate feedback (r/w)
pedl60852-01 1 semiconductor ML60852 56/81 ep0 payload register (ep0pld) address 0 x 50 type 6-bit data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00100000 after a bus reset 00100000 definition 0 0 1 0 maximum packet size: since the fifo of ep0 in the ML60852 has a size of 32 bytes, write 20h into the byte bmaxpacketsize0 of the device descriptor. the maximum packet size is fixed at 32 bytes in this ep0pld register. when a packet with more than 32 bytes is received, the stall bit in the ep0 status register is asserted and the stall handshake is returned to the host. ep1, 2 payload registers (ep1,2pld) address 0 x 51, 52 type 7-bit data access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 0 maximum packet size (r/w) maximum packet size: make the local mcu write in this register the value of the descriptor wmaxpacketsize of the end point selected by the set_configuration request from the host. the size of all packets other than a short packet is specified here in units of a byte. when the ep has been assigned for reception, if a data packet with a number of bytes exceeding the maximum packet size specified in this register is received, the receive packet ready status bit is not asserted, but the stall bit is set in eop and the stall handshake is returned to the host. on the other hand, when the ep has been assigned for transmission, the transmit packet ready bit is set automatically when writing by the dma controller of data with the maximum packet size specified in this register is completed. the content of this register is ignored during non-dma transmission of data. maximum packet size
pedl60852-01 1 semiconductor ML60852 57/81 ep3 payload register (ep3pld) address 0 x 53 type 6-bit data access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 0 0 maximum packet size: make the local mcu write in this register the value of the descriptor wmaxpacketsize of the end point selected by the set_configuration request from the host. the size of all packets other than a short packet is specified here in units of a byte. set 20h (32 bytes) or less because the fifo size is 32 bytes. when ep3 has been assigned for reception, if a data packet with a number of bytes exceeding the maximum packet size specified in this register is received, the receive packet ready status bit is not asserted, but the stall bit is set in eop and the stall handshake is returned to the host. there is no need to use this register when ep3 has been assigned for transmission. ep4, 5 payload lsb registers (ep4, 5pldlsb) address 0 x 54, 55 type 10-bit or 9-bit data access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition maximum packet size lsb (r/w) maximum packet size lsb: make the local mcu write in this register the value of the descriptor wmaxpacketsize of the end point selected by the set_configuration request from the host. the lower 8 bits should be stored in this register and the higher-order bytes should be written in the ep4,5 payload registers msb. the maximum packet size is specified in units of a byte. when the ep has been assigned for reception, if a data packet with a number of bytes exceeding the maximum packet size specified in these registers is received, the receive packet ready status bit is not asserted, but the stall bit is set in eop and the stall handshake is returned to the host. on the other hand, when the ep has been assigned for transmission, the transmit packet ready bit is set automatically when writing by the dma controller of data with the maximum packet size specified in this register is completed. maximum packet size (r/w)
pedl60852-01 1 semiconductor ML60852 58/81 ep0 receive byte counter register (ep0rxcnt) address 0 x 58 type 6-bit data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 0 0 receive byte count (r) the ML60852 automatically counts the number of bytes in the packet being received. although the counting is done only up to the number of bytes equal to the maximum packet size specified in the payload register in the case of a full packet, the count will be less than that size in the case of a short packet. the local mcu refers to this value and reads out the data of one packet from the ep0 receive fifo. the ep0rxcnt register is cleared under the following conditions. 1. when the local mcu resets the ep receive packet ready bit. 2. when a setup packet is received. 3. when the local mcu writes a ?0? into the stall bit. ep1, 2 receive byte counter registers (ep1, 2rxcnt) address 0 x 59, 5a type 7-bit data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 0 receive byte count (r) the ML60852 automatically counts the number of bytes in the packet being received. although the counting is done only up to the number of bytes equal to the maximum packet size specified in the payload register in the case of a full packet, the count will be less than that size in the case of a short packet. the local mcu refers to this value and reads out the data of one packet from the ep1/2 receive fifo. this register will be invalid when the transfer direction of the ep is set for transmission. the ep1,2rxcnt register is cleared under the following conditions. 1. when an out token is received for the ep. 2. when the local mcu resets the ep receive packet ready bit. 3. when the local mcu writes a ?0? into the stall bit.
pedl60852-01 1 semiconductor ML60852 59/81 ep3 receive byte counter register (ep3rxcnt) address 0 x 5b type 6-bit data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 0 0 receive byte count (r) the ML60852 automatically counts the number of bytes in the packet being received. although the counting is done only up to the number of bytes equal to the maximum packet size specified in the payload register in the case of a full packet, the count will be less than that size in the case of a short packet. the local mcu refers to this value and reads out the data of one packet from the ep3 receive fifo. this register will be invalid when the transfer direction of the ep is set for transmission. the ep3rxcnt register is cleared under the following conditions. 1. when an out token is received for ep3. 2. when the local mcu resets the ep receive packet ready bit. 3. when the local mcu writes a ?0? into the stall bit. ep4, 5 receive byte lsb counter registers (ep4, 5rxcntlsb) address 0 x 5c, 5d type 10-bit or 9-bit data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition receive byte count lsb (r) the ML60852 automatically counts the number of bytes in the packet being received. although the counting is done only up to the number of bytes equal to the maximum packet size specified in the payload register in the case of a full packet, the count will be less than that size in the case of a short packet. the local mcu refers to this value and reads out the data of one packet from the ep4/5 receive fifo. the lower 8 bits of the receive byte count are stored in this register and the higher order bits are stored in the ep receive byte counter msb. this register will be invalid when the transfer direction of the ep is set for transmission. the ep4,5rxcnt register is cleared under the following conditions. 1. when an out token is received for the ep. 2. when the local mcu resets the ep receive packet ready bit. 3. when the local mcu writes a ?0? into the stall bit.
pedl60852-01 1 semiconductor ML60852 60/81 ep0 status register (ep0stat) address 0 x 60 type bit map access type see below d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 0 0 0 setup ready: this bit is set automatically when a setup packet normally arrives in the 8-byte setup register, and the ep0 receive fifo is locked. if intenbl1(0) is asserted, the intr pin is also asserted automatically when this bit is set. the local mcu should write a ?1? into this bit after reading out the 8-byte setup data. when this is performed, the setup ready bit is reset and the intr pin also is de-asserted. during a control write transfer, the packet ready bit of ep0 is reset simultaneously and the lock condition is released, and it becomes possible to receive packets by ep0 during the data stage. the register will not change even if a ?0? is written in this bit. ep0 transmit packet ready bit (d1): the local mcu can read this bit. writing when d1=1 sets this bit to ?1?. the asserting and de-asserting conditions are described below. bit name asserting condition operation when asserted ep0 transmit packet ready (d1) when the local mcu has reset this bit data can be transmitted from ep0. bit name de-asserting condition operation when de-asserted ep0 transmit packet ready (d1) 1. when an ack is received from the host for data transmission 2. when a setup packet is received ep0 is locked. that is, an nak is automatically returned when an in token is sent from the host. ep0 receive packet ready (r/reset) ep0 stage (r) 00 = default state 01 = data stage 10 = data stage completed state ep0 transmit packet ready (r/set) setup ready (r/reset)
pedl60852-01 1 semiconductor ML60852 61/81 ep0 receive packet ready bit (d0): the local mcu can read this bit. writing when d1=1 sets this bit to ?0?. the asserting and de-asserting conditions are described below. bit name asserting condition operation when asserted ep0 receive packet ready (d0) 1. when data is received by ep0 and stored in fifo 2. when a setup packet is received during control read transfer or control write transfer ep0 is locked (an nak is automatically returned when a data packet is received from the host). bit name de-asserting condition operation when de-asserted ep0 receive packet ready (d0) 1. when the local mcu has reset this bit ( a ?1? is written in this bit) 2. when the local mcu resets the setup ready bit during control write transfer ep0 can receive data.
pedl60852-01 1 semiconductor ML60852 62/81 ep0 stage (d5, d4): these bits indicate the stage transition during control transfer. the flowchart of the stage transition is shown below. condition 1: reception of a setup packet of control read transfer or control write transfer. condition 2: reception of a setup packet of control transfer without data. condition 3: reception of a token (in/out) of a direction opposite to the data flow in the data stage. default state hardware reset usb bus reset condition 2 condition 1 condition 3 condition 1 data state data stage completed state
pedl60852-01 1 semiconductor ML60852 63/81 ep1, 2, 4, 5 status registers (ep1, 2, 4, 5stat) address 0 x 61, 62, 64, 65 type bit map access type see below d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 000000 this register is valid only when the corresponding ep has been set for bulk or interrupt transfer. ep1,2,4,5 receive packet ready bit (d0): this bit can be read by the local mcu. also, this bit can be made ?0? by writing a ?1? into bit d0. the asserting and de-asserting conditions of this bit are as given below. the fifos of ep1, ep2, ep4, and ep5 have a 2-layer structure and also there are independent packet ready bits for layer a and layer b. the switching between these two layers is done automatically by the ML60852. bit name asserting condition operation when asserted ep1 receive packet ready (d0) when an error-free packet is received in either layer a or layer b. the local mcu can read the ep1 receive fifo. ep1 is locked in the condition in which data packets have been received by both layer a and layer b. bit name de-asserting condition operation when de-asserted ep0 receive packet ready (d0) when the local mcu has reset (written a ?1? in) the bits of both layer a and layer b. reception can be made by ep1 when the bit of either layer a or layer b has been reset. ep1,2,4,5 transmit packet ready bit (d1): this bit can be read by the local mcu. also, this bit can be made ?1? by writing a ?1? into bit d1. the asserting and de-asserting conditions of this bit are as given below. the fifo of ep1 has a 2-layer structure and also there are independent packet ready bits for layer a and layer b. the switching between these two layers is done automatically by the ML60852. bit name asserting condition operation when asserted ep1 transmit packet ready (d1) when the local mcu has set the bits of both layer a and layer b. transmission can be made from ep1 when either layer a or layer b has been asserted. bit name de-asserting condition operation when de-asserted ep1 transmit packet ready (d1) when an ack message is received from the host for the data transmission to either layer a or layer b. ep1 is locked when transmit data has not been prepared for both layer a and layer b. ep receive packet ready (read/reset) ep transmit packet ready (read/set)
pedl60852-01 1 semiconductor ML60852 64/81 ep3 status register (ep3stat) address 0 x 63 type bit map access type see below d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 000000 this register is valid only when ep3 has been set for bulk or interrupt transfer. ep3 receive packet ready bit (d0): this bit can be read by the local mcu. also, this bit can be made ?0? by writing a ?1? into bit d0. the asserting and de-asserting conditions of this bit are as given below. bit name asserting condition operation when asserted ep3 receive packet ready (d0) when an error-free packet is received. ep3 is locked. bit name de-asserting condition operation when de-asserted ep3 receive packet ready (d0) when the local mcu has reset (written a ?1? in) this bit. reception can be made by ep3. ep3 transmit packet ready bit (d1): this bit can be read by the local mcu. also, this bit can be made ?1? by writing a?'1? into this bit. the asserting and de-asserting conditions of this bit are as given below. bit name asserting condition operation when asserted ep1 transmit packet ready (d1) when the local mcu has set this bit. when an ack message is received from the host for the data transmission from ep3. bit name de-asserting condition operation when de-asserted ep1 transmit packet ready (d1) transmission can be made from ep3. reception can be made by ep3. ep3 receive packet ready (read/reset) ep3 transmit packet ready (read/set)
pedl60852-01 1 semiconductor ML60852 65/81 ep4, 5 payload msb registers (ep4, 5pldmsb) address 0 x 6c, 6d type 10-bit or 9-bit data access type read/write d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 000000 the higher-order 6 bits of ep4pldmsb are fixed at ?0? and the higher-order 7 bits of ep5pldmsb are fixed at ?0?. ep payload msb
pedl60852-01 1 semiconductor ML60852 66/81 ep4, 5 receive byte msb counter registers (ep4, 5rxcntmsb) address 0 x 74, 75 type 10-bit or 9-bit data access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 000000 the higher-order 6 bits of ep4rxcntmsb are fixed at ?0? and the higher-order 7 bits of ep5rxcntmsb are fixed at ?0?. ep receive byte count msb
pedl60852-01 1 semiconductor ML60852 67/81 packet error register (pkterr) address 0 x 39 type bit map access type read only d7 d6 d5 d4 d3 d2 d1 d0 after a hardware reset00000000 after a bus reset 00000000 definition 000000 each of the above bits is asserted when the corresponding error occurs, and is de-asserted when sop is received. the error information is reported by this register. there is no particular need to access this register other than for testing during development or for developing a product for making reports of measurement of error occurrence frequency. bit stuff error data crc error address crc error pid error
pedl60852-01 1 semiconductor ML60852 68/81 timing diagram read timing (1) (address separate, adsel =0) parameter symbol condition min. max. unit note address setup time ( rd )t 1 ( rd )0?ns(5) address setup time ( cs )t 1 ( cs )0?ns(5) address ( cs ) hold time t 2 0?ns(2) read data delay time t 3 load 20 pf ? 46 ns (1) read data hold time t 4 021ns recovery time t 5 fifo read 63 ? ns (3) fifo access time t 6 fifo read 63 ? ns (4) notes: (1) t 3 is defined depending upon cs or rd which becomes active last. (2) t 2 is defined depending upon cs or rd which becomes active first. (3) 3-clock time of oscillation clock (clock period:21 ns). it is required for increment of fifo. (4) 2-clock time of oscillation clock (clock period:21 ns). it is required for increment of fifo. (5) t 1 is required for reading fifo. t 1 is defined when either t 1 ( cs )or t t 1 ( rd )is satisfied. a7:a0 cs rd ad7:ad0 t 1 t 6 t 2 t 3 t 4 t 5 data out
pedl60852-01 1 semiconductor ML60852 69/81 read timing (2) (address/data multiplex, adsel =1) parameter symbol condition min. max. unit note address ( cs ) setup time t 1 10 ? ns address ( cs ) hold time t 2 0?ns read data delay time t 3 load 20 pf ? 46 ns read data hold time t 4 021ns recovery time t 5 fifo read 63 ? ns (1) fifo access time t 6 fifo read 63 ? ns (2) notes: (1) 3-clock time of oscillation clock (clock period:21 ns). it is required for increment of fifo. (2) 2-clock time of oscillation clock (clock period:21 ns). it is required for increment of fifo. ad7: ad0 ale cs rd t 4 t 3 t 5 t 6 t 2 data out address t 1
pedl60852-01 1 semiconductor ML60852 70/81 write timing (1) (address separate, adsel =0) parameter symbol condition min. max. unit note address setup time t 1 (a-w) 0 ? ns (1) address setup time t 1 (a-c) 0 ? ns (1) address ( cs ) hold time t 2 0?ns cs setup time t 3 10 ? ns write data setup time t 4 30 ? ns write data hold time t 5 0?ns recovery time t 6 fifo write 63 ? ns (2) fifo access time t 7 fifo write 63 ns (3) notes: (1) either t 1 (a ?w) or t 1 (a ?c) should be satisfied. (2) t 1 is defined depending upon cs or wr which becomes active last. (3) 3-clock time of oscillation clock (clock period: 21ns). it is required for increment of fifo. (4) 2-clock time of oscillation clock (clock period: 21ns). it is required for increment of fifo. (5) applied to all registers including clrfifo (address: 4eh). data in a7: a0 t 1 (a-w) t 1 (a-c) t 7 t 3 t 4 t 2 t 6 t 5 cs wr ad7: ad0
pedl60852-01 1 semiconductor ML60852 71/81 write timing (2) (address/data multiplex, adsel =1) parameter symbol condition min. max. unit note address ( cs ) setup time t 1 10 ? ns address ( cs ) hold time t 2 0?ns write data delay time t 3 30 ? ns write data hold time t 4 0?ns recovery time t 5 fifo write 63 ? ns (1) fifo access time t 6 fifo write 63 ? ns (2) notes: (1) 3-clock time of oscillation clock (clock period: 21 ns). it is required for increment of fifo. (2) 2-clock time of oscillation clock (clock period: 21 ns). it is required for increment of fifo. (3) applied to all registers including clrfifo (address: 4eh). ad7: ad0 ale cs wr t 4 t 3 t 5 t 6 t 2 t 1 data in address
pedl60852-01 1 semiconductor ML60852 72/81 dma transfer timing (1) ML60852 to memory (single transfer, single address mode) parameter symbol condition min. max. unit note dreq disable time t 1 load 20 pf ? 20 ns dreq enable time t 2 ?63ns(4) dack hold time t 3 0?ns read data delay time t 4 load 20 pf ? 46 ns (1) data hold time t 5 0?ns 8-bit dma 63 ? ns (2) recovery time t 6 16-bit dma 105 ? ns (3) notes: (1) when in single address mode, cs and a7: a0 are ignored. t 1 and t 4 are defined depending on dack or rd which becomes active last. (2) 3-clock time of oscillation clock (clock period: 21 ns). (3) 5-clock time of oscillation clock (clock period: 21 ns). (4) it is possible to increase t 2 by setting the dma interval register (dmaintvl). dack data out dreq dout rd t 4 t 3 t 5 t 6 t 2 t 1
pedl60852-01 1 semiconductor ML60852 73/81 dma transfer timing (2) ML60852 to memory (single transfer, dual address mode) parameter symbol condition min. max. unit note dreq disable time t 1 load 20 pf ? 20 ns dreq enable time t 2 ?63ns(4) read data delay time t 3 load 20 pf ? 46 ns (1) data hold time t 4 0?ns 8-bit dma 63 ? ns (2) recovery time t 5 16-bit dma 105 ? ns (3) notes: (1) when in dual address mode, the dack is ignored. t 1 and t 3 are defined depending on cs or rd which becomes active last. a7: a0 specifies the fifo address. refer to read timing (1) for address setup time and address hold time. (2) 3-clock time of oscillation clock (clock period: 21 ns). (3) 5-clock time of oscillation clock (clock period: 21 ns). (4) it is possible to increase t t 2 by setting the dma interval register (dmaintvl). data out a7: a0 dreq dout rd cs t 4 t 3 t 5 t 2 t 1
pedl60852-01 1 semiconductor ML60852 74/81 dma transfer timing (3) ML60852 to memory (demand transfer, single address mode) parameter symbol condition min. max. unit note dreq disable time t 1 load 20 pf ? 20 ns dack hold time t 2 0?ns read data delay time t 3 load 20 pf ? 46 ns (1) data hold time t 4 0?ns 8-bit dma 63 ? ns (2) recovery time t 5 16-bit dma 105 ? ns (3) notes: (1) when in single address mode, t 3 is defined depending on dack or rd which becomes active last. a7: a0 and cs are ignored. (2) 3-clock time of oscillation clock (clock period: 21 ns). (3) 5-clock time of oscillation clock (clock period: 21 ns). last packet read dreq dout rd dack t 4 t 3 t 5 t 2 t 1
pedl60852-01 1 semiconductor ML60852 75/81 dma transfer timing (4) ML60852 to memory (demand transfer, dual address mode) parameter symbol condition min. max. unit note dreq disable time t 1 load 20 pf ? 20 ns cs hold time t 2 0?ns read data delay time t 3 load 20 pf ? 46 ns (1) data hold time t 4 0?ns 8-bit dma 63 ? ns (2) recovery time t 5 16-bit dma 105 ? ns (3) notes: (1) when in dual address mode, the dack is ignored. t 3 is defined depending on cs or rd which becomes active last. a7: a0 specifies the fifo address. refer to read timing (1) for address setup time and address hold time. (2) 3-clock time of oscillation clock (clock period: 21 ns). (3) 5-clock time of oscillation clock (clock period: 21 ns). dreq dout rd cs ad7: a0 last packet read t 4 t 3 t 5 t 2 t 1
pedl60852-01 1 semiconductor ML60852 76/81 dma transfer timing (5) memory to ML60852 (single transfer, single address mode) parameter symbol condition min. max. unit note dreq disable time t 1 load 20 pf ? 20 ns dreq enable time t 2 ?63ns(4) fifo access time t 3 fifo write 42 ? ns (1) dack hold time t 4 0?ns write data setup time t 5 30 ? ns write data hold time t 6 5?ns 8-bit dma 63 ? ns (2) recovery time t 7 16-bit dma 105 ? ns (3) notes: (1) when in single address mode, cs and a7: a0 are ignored. (2) 3-clock time of oscillation clock (clock period: 21 ns). (3) 5-clock time of oscillation clock (clock period: 21 ns). (4) it is possible to increase t 2 by setting the dma interval register (dmaintvl). dreq din wr dack t 4 t 3 t 5 t 6 t 7 t 2 t 1
pedl60852-01 1 semiconductor ML60852 77/81 dma transfer timing (6) memory to ML60852 (single transfer, dual address mode) parameter symbol condition min. max. unit note dreq disable time t 1 load 20 pf ? 20 ns dreq enable time t 2 ?63ns(4) fifo access time t 3 fifo write 42 ? ns (1) write data setup time t 4 30 ? ns write data hold time t 5 5?ns 8-bit dma 63 ? ns (2) recovery time t 6 16-bit dma 105 ? ns (3) notes: (1) when in dual address mode, the dack is ignored. t 1 and t 3 are defined depending on cs or wr which becomes active last. refer to write timing (1) for address setup time and address hold time. (2) 3-clock time of oscillation clock (clock period: 21 ns). (3) 5-clock time of oscillation clock (clock period: 21 ns). (4) it is possible to increase t 2 by setting the dma interval register (dmaintvl). dreq din rd cs a7: a0 t 4 t 3 t 5 t 6 t 2 t 1 wr
pedl60852-01 1 semiconductor ML60852 78/81 dma transfer timing (7) memory to ML60852 (demand transfer, single address mode) parameter symbol condition min. max. unit note dreq disable time t 1 load 20 pf ? 20 ns fifo access time t 2 fifo write 42 ? ns (1) dack hold time t 3 0?ns write data setup time t 4 30 ? ns write data hold time t 5 5?ns 8-bit dma 63 ? ns (2) recovery time t 6 16-bit dma 105 ? ns (3) notes: (1) when in single address mode,a7: a0 and cs are ignored. t 2 is defined depending on dack or wr which becomes active last. (2) 3-clock time of oscillation clock (clock period: 21 ns). (3) 5-clock time of oscillation clock (clock period: 21 ns). dreq din wr dack last packet write (note) t 4 t 3 t 5 t 6 t 2 t 1 (note) the last write to reach the byte size (maximum packet size) specified by the ep1 payload register. to terminate dma transfer before reaching the maximum packet size, set ep1 packet ready by writing "1"to the ep1 endpoint packet ready bit.
pedl60852-01 1 semiconductor ML60852 79/81 dma transfer timing (8) memory to ML60852 (demand transfer, dual address mode) parameter symbol condition min. max. unit note dreq disable time t 1 load 20 pf ? 20 ns fifo access time t 2 fifo write 42 ? ns (1) cs hold time t 3 0?ns write data setup time t 4 30 ? ns write data hold time t 5 5?ns 8-bit dma 63 ? ns (2) recovery time t 6 16-bit dma 105 ? ns (3) notes: (1) when in dual address mode, the dack is ignored. a7: a0 specifies the fifo address. refer to write timing (1) for address setup time and address hold time. t 2 is defined depending on cs or wr which becomes active last. (2) 3-clock time of oscillation clock (clock period: 21 ns). (3) 5-clock time of oscillation clock (clock period: 21 ns). dreq din wr cs a7: a0 t 4 t 3 t 5 t 6 t 2 t 1 (note) refer to the previous page.
pedl60852-01 1 semiconductor ML60852 80/81 notice 1. the information contained herein can change without notice owing to product and/or technical improvements. before using the product, please make sure that the information being referred to is up-to-date. 2. the outline of action and examples for application circuits described herein have been chosen as an explanation for the standard action and performance of the product. when planning to use the product, please ensure that the external conditions are reflected in the actual circuit, assembly, and program designs. 3. when designing your product, please use our product below the specified maximum ratings and within the specified operating ranges including, but not limited to, operating voltage, power dissipation, and operating temperature. 4. oki assumes no responsibility or liability whatsoever for any failure or unusual or unexpected operation resulting from misuse, neglect, improper installation, repair, alteration or accident, improper handling, or unusual physical or electrical stress including, but not limited to, exposure to parameters beyond the specified maximum ratings or operation outside the specified operating range. 5. neither indemnity against nor license of a third party?s industrial and intellectual property right, etc. is granted by us in connection with the use of the product and/or the information and drawings contained herein. no responsibility is assumed by us for any infringement of a third party?s right which may result from the use thereof. 6. the products listed in this document are intended for use in general electronics equipment for commercial applications (e.g., office automation, communication equipment, measurement equipment, consumer electronics, etc.). these products are not authorized for use in any system or application that requires special or enhanced quality and reliability characteristics nor in any system or application where the failure of such system or application may result in the loss or damage of property, or death or injury to humans. such applications include, but are not limited to, traffic and automotive equipment, safety devices, aerospace equipment, nuclear power control, medical equipment, and life-support systems. 7. certain products in this document may need government approval before they can be exported to particular countries. the purchaser assumes the responsibility of determining the legality of export of these products and will take appropriate and necessary steps at their own expense for these. 8. no part of the contents contained herein may be reprinted or reproduced without our prior permission. copyright 2000 oki electric industry co., ltd.
pedl60852-01 1 semiconductor ML60852 81/81 data sheet revision history from ver. 0.32 to ver. 0.40 - march 25, 1999 ? changed the fifo access time in the timing chart from 42ns to 63ns. ? changed the read data delay time in the timing chart from 25ns to 46ns. ? added functions to the higher order three bits of the dma control register. ? added restrictions on the use of the dma control register. ? discontinued supporting the 1k byte packet size in ep4. ? corrected the data packet transmission and reception procedure during isochronous transfer in paragraph (6) of the function description. ? changed the maximum packet size (fifo size) of ep0 and ep3 to 32 bytes. ? added remote wakeup bit in the system control register. ? changed the bit position of the receive/transmit packet ready bits in the ep status registers. ? changed the bit positions of the ep0 receive/transmit packet ready interrupt status/enable bits of the interrupt status/enable register 1. ? added the function of conforming to protocol stall in the stall bit of the ep0 control register. ? added anew the msb part in the ep4,5 payload/byte count register. ? changed the specifications of the interrupt statuses related to usb bus reset, suspend, and awake. from ver. 0.40 to ver. 0.50 - june 25, 1999 ? changed 48-pin tqfp to 56-pin lga. ? changed pin conguration. ? changed the set value of the ep mode bit of the system control register. ? added the pll enable bit in d5 of the system control register. ? added the pll multiplication factor selection bit in d6 of the system control register. ? corrected other wrong description. from ver. 0.50 to ver. 0.51 - july 13, 1999 ? added 56-pin lga pin configration. ? corrected the figure. ? description of ale/puctl: corrected the bit map position of the syscon register. ? changed the description - end point and de-packeting ? reporting handshake is ack ... <- deleted ack. ? added missing entry of the byte count register. ? corrected spelling mistake. ? corrected the bit map position of epnstat. ? corrected the bit map position of epnstat. ? corrected the bit map position of the syscon register. ? deleted the device state register. ? added description. ? corrected the shift in the figure. ? changed the expression. ? added description. ? changed the expression. ? added "writing of the data sequence bit is invalid". ? changed from (r/set) to (r/reset) and from (r/reset) to (r/set), changes the name of ep0 stage. ? nak to nak ? corrected the drawing. ? changed from (r/set) to (r/reset) and from (r/reset) to (r/set) ? changed from (r/set) to (r/reset) and from (r/reset) to (r/set) ? deleted the device state register.


▲Up To Search▲   

 
Price & Availability of ML60852

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X